<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('设备维保详情')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row" >
            <div class="col-sm-12 search-collapse" visibility="hidden">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>设备id：</label>
                                <input name="equipmentMaintenanceId"  th:value="*{mid}" type="hidden" readonly/>
                                <input name="carno"  th:value="*{carno}" type="text" readonly/>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:maintenancedetail:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/maintenancedetail";

        $(function() {
            var options = {
                url: prefix + "/list",
                exportUrl: prefix + "/export",
                modalName: "维保详情",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '编号'
                },
                {
                    field: 'equipmentMaintenanceId',
                    title: '维保单id',
                    visible: false
                },
                {
                    field: 'content',
                    title: '维保详情'
                },
                {
                    field: 'mCount',
                    title: '数量'
                },
                {
                    field: 'price',
                    title: '单价'
                },
                {
                    field: 'cost',
                    title: '金额'
                },
                {
                    field: 'remark',
                    title: '备注'
                }]
            };
            $.table.init(options);
        });

    </script>
</body>
</html>
